

export const mixin_btnStatus = {
  data(){
    return {
      isSubmitBtnDisabled: false,
    }
  },
  methods: {
    _updateSubmitBtnStatus(){
      this.isSubmitBtnDisabled = true
      this.timerId =  setTimeout(()=> {
        this.isSubmitBtnDisabled = false
      }, 2000)
    },
  },

  beforeDestroy() {
    clearTimeout(this.timerId);
  },
};
